<?php
/**
 * Created by PhpStorm.
 * User: wangmx
 * Date: 2016/11/17
 * Time: 17:50
 */

namespace App\Http\Routes;

use Illuminate\Contracts\Routing\Registrar;
class AuthenticationBackRoute
{
    public function map(Registrar $router)
    {
        $router->group(['middleware' =>[ 'web','auth','permissions.check'],
            'prefix' =>'backstage/authentication/'], function ($router) {
            $router->get('designer-list',['uses' =>'Backstage\AuthenticationController@AuthenticationToDesigner'])->name('get.authentication.designer-list');
            $router->get('brand-list',['uses' =>'Backstage\AuthenticationController@AuthenticationToBrand'])->name('get.authentication.brand-list');
            $router->get('designer-detail',['uses' =>'Backstage\AuthenticationController@designerDetail'])->name('get.authentication.designer-list.designer-detail');
            $router->get('brand-detail',['uses' =>'Backstage\AuthenticationController@brandDetail'])->name('get.authentication.brand-list.brand-detail');
            $router->get('pass-authentication',['uses' =>'Backstage\AuthenticationController@passAuthentication'])->name('get.authentication.designer-list.pass-authentication');
            $router->post('refused-authentication',['uses' =>'Backstage\AuthenticationController@RefusedAuthentication'])->name('post.authentication.designer-list.refused-authentication');
            $router->get('config',['uses' =>'Backstage\AuthenticationController@config'])->name('get.authentication.config');
            $router->post('config',['uses' =>'Backstage\AuthenticationController@postconfig'])->name('post.authentication.config.config');
            $router->get('commend-designer',['uses' =>'Backstage\AuthenticationController@designerAuthentication'])->name('get.authentication.designer-list.commend-designer');
            $router->get('commend-brand',['uses' =>'Backstage\AuthenticationController@brandAuthentication'])->name('get.authentication.brand-list.commend-brand');
            $router->get('cancel-designer',['uses' =>'Backstage\AuthenticationController@cancelDesignerAuthentication'])->name('get.authentication.designer-list.cancel-designer');
            $router->get('cancel-brand',['uses' =>'Backstage\AuthenticationController@cancelBrandAuthentication'])->name('get.authentication.brand-list.cancel-brand');
            $router->post('update-designer-info',['uses' =>'Backstage\AuthenticationController@editDesigner'])->name('post.authentication.brand-list.update-designer-info');
            $router->post('update-brand-info',['uses' =>'Backstage\AuthenticationController@editBrand'])->name('post.authentication.brand-list.update-brand-info');
            $router->get('update-logo',['uses' =>'Backstage\AuthenticationController@updateLogo'])->name('get.authentication.brand-list.update-logo');
            $router->post('update-logo',['uses' =>'Backstage\AuthenticationController@postUpdateLogo'])->name('post.authentication.brand-list.update-logo');
            $router->get('limit-name-list',['uses' =>'Backstage\AuthenticationController@limitNameList'])->name('get.authentication.brand-list.limit-name-list');
            $router->post('delete-limit',['uses' =>'Backstage\AuthenticationController@deleteLimit'])->name('post.authentication.brand-list.delete-limit');
            $router->post('add-limit',['uses' =>'Backstage\AuthenticationController@addLimit'])->name('post.authentication.brand-list.add-limit');
            $router->post('edit-limit',['uses' =>'Backstage\AuthenticationController@editLimit'])->name('post.authentication.brand-list.edit-limit');
            $router->post('verified-card',['uses' =>'Backstage\AuthenticationController@VerifiedCard'])->name('post.authentication.designer-list.verified-card');
            $router->post('download-excel',['uses' =>'Backstage\AuthenticationController@postDownloadExcel'])->name('post.authentication.designer-list.download-excel');
            $router->post('load-excel',['uses' =>'Backstage\AuthenticationController@postLoadExcel'])->name('post.authentication.designer-list.load-excel');
        });
    }
}